home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act3 / 00268_quitbox1.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  757 b   |  29 lines

  1. on mouseDown
  2.   global game3level, returnframe
  3.   set returnframe to the frame
  4.   set castigate to the number of cast "quitbox2"
  5.   set the castNum of sprite the clickOn to castigate
  6.   startTimer()
  7.   set tstep to 10
  8.   puppetSound("Sound 6")
  9.   repeat while the mouseDown
  10.     set ttime to the timer / tstep
  11.     if ttime < 4 then
  12.       set the castNum of sprite the clickOn to the number of cast ("quitbox" & ttime + 1)
  13.       updateStage()
  14.     end if
  15.   end repeat
  16.   startTimer()
  17.   set ttime to 0
  18.   repeat while ttime < 4
  19.     set ttime to the timer / tstep
  20.     if ttime < 4 then
  21.       set the castNum of sprite the clickOn to the number of cast ("quitbox" & 4 - ttime)
  22.       updateStage()
  23.     end if
  24.   end repeat
  25.   updateStage()
  26.   cleanmeup()
  27.   go(returnframe)
  28. end
  29.